package com.video.information.util

import android.view.View
import android.widget.FrameLayout

object ViewUtils {

    /**
     * 将View从父控件中移除
     */
    fun removeViewFormParent(v: View?) {
        if (v == null) return
        val parent = v.parent
        if (parent is FrameLayout) {
            parent.removeView(v)
        }
    }
}